/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import org.hibernate.Criteria;
import org.orm.PersistentException;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tp_logCriteria extends AbstractORMCriteria {
	public final IntegerExpression l_id;
	public final StringExpression l_hora;
	public final StringExpression l_parametros;
	public final StringExpression l_resultado;
	public final DoubleExpression l_tiempo_de_calculo;
	public final StringExpression l_metodo_con;
	
	public Tp_logCriteria(Criteria criteria) {
		super(criteria);
		l_id = new IntegerExpression("l_id", this);
		l_hora = new StringExpression("l_hora", this);
		l_parametros = new StringExpression("l_parametros", this);
		l_resultado = new StringExpression("l_resultado", this);
		l_tiempo_de_calculo = new DoubleExpression("l_tiempo_de_calculo", this);
		l_metodo_con = new StringExpression("l_metodo_con", this);
	}
	
	public Tp_logCriteria(PersistentSession session) {
		this(session.createCriteria(Tp_log.class));
	}
	
	public Tp_logCriteria() throws PersistentException {
		this(orm.Bdprueba2PdsPersistentManager.instance().getSession());
	}
	
	public Tp_log uniqueTp_log() {
		return (Tp_log) super.uniqueResult();
	}
	
	public Tp_log[] listTp_log() {
		java.util.List list = super.list();
		return (Tp_log[]) list.toArray(new Tp_log[list.size()]);
	}
}

